﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Ankha
{
    public abstract class GameScreen : IScreen
    {
        //Fields
        public ScreenManager Manager
        {
            get;
            set;
        }

        //ctor
        public GameScreen()
        {

        }

        //Methods
        protected abstract void InitGame();
        protected abstract void LoadGame();
        protected abstract void RenderGame(SpriteBatch batch, GameTime time);
        protected abstract void UpdateGame(InputControl input, GameTime time);


        public void Init()
        {
            InitGame();
        }
        public void Load()
        {
            LoadGame();
        }

        public void RenderScreen(SpriteBatch batch, GameTime time)
        {
            RenderGame(batch, time);
        }
        public void UpdateScreen(InputControl input, GameTime time)
        {
            UpdateGame(input, time);
        }
    }
}
